package com.itheima.mapper;

import com.itheima.domain.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author itheima
 * @since 2022-05-03
 */
@Mapper
public interface EmployeeMapper {
    List<Employee> selectAll(@Param("name") String name,
                             @Param("offset") Integer offset,
                             @Param("pageSize") Integer pageSizes);


    Long selectCount(@Param("name") String name);

    Employee selectById(@Param("id") String id);
}
